package com.yahoo.platform.util;


import java.nio.file.Path;
import java.nio.file.WatchEvent.Kind;

public class FileSystemEventArgs {
	private final String fileName;
	private Path path;
	private final Kind<?> kind;
	
	public FileSystemEventArgs(String fileName, Kind<?> kind){
		this.fileName = fileName;
		this.kind = kind;
	}
	
	public FileSystemEventArgs(Path path, Kind<?> kind){
		this.path = path;
		this.kind = kind;
		fileName = "";
	}

	public Path getPath(){return this.path;}
	public String getFileName(){return this.fileName;}
	
	@SuppressWarnings("rawtypes")
	public Kind getKind(){return this.kind;}
}
